package com.pms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pms.dao.ProjectMapper;
import com.pms.domain.Project;
import com.pms.service.ProjectService;

/** 
* @ClassName: ProjectServiceImpl 
* @Description:  
* @author ZZW
* @date 2016年12月2日 下午5:56:09 
*  
*/
@Service
public class ProjectServiceImpl implements ProjectService {
	
	@Autowired
	ProjectMapper projectMapper;

	@Override
	public void insertProject(Project project) {
		projectMapper.insertProject(project);
	}

	@Override
	public Project selectByPrimaryKey(Integer id) {
		return projectMapper.selectByPrimaryKey(id);
	}

	@Override
	public void updateByPrimaryKey(Project project) {
		projectMapper.updateByPrimaryKey(project);		
	}

	@Override
	public List<Project> getAll() {
		return projectMapper.getAll();
	}

	@Override
	public void deleteProject(Integer id) {
		projectMapper.deleteProject(id);
	}


}
